package client;

import java.awt.BorderLayout;
import java.awt.Component;

import javax.swing.JFrame;
import ui.IReadingPanel;
import ui.ReadingPanel;

public class SConversationFrame extends JFrame{
	
	private static final long serialVersionUID = 0;
	
	private IReadingPanel rP=new ReadingPanel();
	
	public SConversationFrame(String reciever) {

		setTitle(reciever);
		setSize(358,300);
		setLayout(new BorderLayout());
		
		this.add((Component) rP);
		setVisible(true);
	}

	
	
	public void setReadingField(String read) {
		
		rP.append(read);
		
	}
	
	
	

}
